package cn.chengpengper.seckill.order.application.model.command;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author chengpeng.hu
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class SeckillOrderCommand implements Serializable {

    private static final long serialVersionUID = -5900065175175957346L;

    /**
     * 商品id
     */
    private Long goodsId;

    /**
     * 购买数量
     */
    private Integer quantity;

    /**
     * 活动id
     */
    private Long activityId;

    /**
     * 商品版本号
     */
    private Long version;

    //订单任务id
    private String orderTaskId = "";

}
